/*
 * bank.hh
 *
 *  Created on: Sep 24, 2012
 *      Author: shaohong
 */

#ifndef BANK_HH_
#define BANK_HH_

#include <string>

using namespace std;

class BankAccount {
	public:
		BankAccount(string const& owner, string const& accountNumber, double balance=0);
		string getOwner() const;
		string getNumber() const;
		double getBalance() const;

		void deposit(double amount);

		bool withdraw(double amount);
		void print();

	private:
		string owner;
		string accountNumber;
		double balance;

};

bool transfer(BankAccount& src, BankAccount& dest, double amount);

#endif /* BANK_HH_ */
